package base.sys.api.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import base.core.api.Result;
import base.sys.api.BaseSysFeignConfig;
import base.sys.api.vo.UserInfo;
import io.swagger.annotations.Api;

/**
 * @Description
 * @Author Pengwei
 * @CreatDate 2022/1/8 16:14
 */
@Api(tags = "系统相关接口")
@FeignClient(contextId = SysFeign.API_PREFIX, path = BaseSysFeignConfig.APPLICATION_NAME + "/" + SysFeign.API_PREFIX, value = BaseSysFeignConfig.APPLICATION_NAME)
public interface SysFeign {
    String API_PREFIX =BaseSysFeignConfig.APPLICATION_NAME + "/SysApi";

    @GetMapping("getUserInfo")
    Result<UserInfo> getUserInfo();
}

